package com.example.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.pojo.SysUser;

@RestController
public class HelloControoler {
    
    // @GetMapping("/hi")
    @PostMapping("/hi")
    public Object sayHi() {
        return "Hello World";
    }

    @GetMapping("/hello")
    public Object sayHello() {
        SysUser sysUser = new SysUser();
        sysUser.setId("1");
        sysUser.setName("张三");
        return sysUser;
    }

    // 读取 数据库中 phont_test 中的三条数据，并展示在页面

}
